package com.lagou.bean;

/*
* CREATE TABLE `t_class` (
  `cid` int(11) NOT NULL AUTO_INCREMENT,
  `cname` varchar(20) COLLATE utf8_bin DEFAULT NULL,
  `grade` varchar(20) COLLATE utf8_bin DEFAULT NULL,
  `teacher` varchar(20) COLLATE utf8_bin DEFAULT NULL,
  `slogan` varchar(50) COLLATE utf8_bin DEFAULT NULL,
  PRIMARY KEY (`cid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_bin
*/
public class Class {
    private int cid;
    private String cname;
    private String grade;
    private String teacher;
    private String slogan;
    private int num;



    public Class() {
    }

    public Class( String cname, String grade, String teacher, String slogan,int num) {

        this.cname = cname;
        this.grade = grade;
        this.teacher = teacher;
        this.slogan = slogan;
        this.num=num;
    }


    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public String getSlogan() {
        return slogan;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "Class{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", grade='" + grade + '\'' +
                ", teacher='" + teacher + '\'' +
                ", slogan='" + slogan + '\'' +
                ", num=" + num +
                '}';
    }
}
